import { NodeApi } from "../utils/config";
import { ResInterface } from "../interface/request.interface";
import { Request } from "../utils/request";

// node接口-检查图片
export const ApiBaseCheckImage = async ({
  data = {},
}): Promise<ResInterface> => {
  return await Request({
    url: `${NodeApi}/api/mini_base/check_image`,
    data,
  });
}

// node接口-刷新token
export const ApiBaseRefreshToken = async ({
  data = {},
}): Promise<ResInterface> => {
  return await Request({
    url: `${NodeApi}/api/mini_base/token_update`,
    data,
  });
}
